package com.pp.web.service;

import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.PointerInfo;
import java.awt.Robot;
import java.awt.Toolkit;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pp.basedata.model.User;
import com.pp.basedata.service.UserService;
import com.pp.common.constant.enums.CoreMsg;
import com.pp.common.exception.BizException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.security.PrivateKey;
import java.security.PublicKey;

@Service
public class UserServiceImpl {


    @Autowired
    UserService userService;

    public IPage<User> userIPage(Integer id,int pageNum, int size){
        LambdaQueryWrapper<User> lambdaQueryWrapper = new LambdaQueryWrapper<User>();
        if(id==100){
            throw new BizException(CoreMsg.REQUEST_PARAMETER_ERROR);
        }
        IPage<User> userIPage = userService.selectPage(new Page(pageNum, size), lambdaQueryWrapper);
        return userIPage;
    }
}
